package com.oop.demo05;

public class TestPerson {
    public static void main(String[] args) {
        Student student = new Student();
        student.name="张三";
        student.job="学生";
        student.money=18000;
        student.id=999;
        student.talk();

        Teacher teacher = new Teacher();
        teacher.name="李四";
        teacher.job="老师";
        teacher.salary=8000;
        teacher.id=888;
        teacher.talk();




    }
}
/*
  Student student = new Student();
        student.name="张三";
        student.job="学生";
        student.money=18000;
        student.id=999;
        student.talk();

        Teacher teacher = new Teacher();
        teacher.name="李四";
        teacher.job="老师";
        teacher.salary=8000;
        teacher.id=888;
        teacher.talk();

 */